{extend name="common/base"/}
<!-- 主体 -->
{block name="body"}
<form class="layui-form p-4">
	<h3 class="pb-3">编辑分拣员</h3>
	<table class="layui-table layui-table-form">
		
				
				
				<tr><td class="layui-td-gray-2">分拣员1</td>
			<td>
				<select name="sorting_admin"  lay-reqText="请选择分拣员" lay-search="">
					<option value="0" >--请选择分拣员-- </option>
					{volist name=":get_fenjian()" id="v"}
					<option value="{$v.id}" >{$v.name} </option>
					{/volist}
				</select>
			</td>
			<td class="layui-td-gray-2">分拣员2</td>
			<td>
				<select name="sorting_admin2"  lay-reqText="请选择分拣员" lay-search="">
					<option value="0" >--请选择分拣员-- </option>
					{volist name=":get_fenjian()" id="v"}
					<option value="{$v.id}">{$v.name} </option>
					{/volist}
				</select>
			</td>
			

		</tr>
				
				<tr>
		</tr>
	</table>
	<div class="table_big2">
		
	</div>
	<div class="py-3">
		<input type="hidden" name="order_nos" value="{$order_nos}"/>
		<button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform">立即提交</button>
		
	</div>
</form>
{/block}
<!-- /主体 -->

<!-- 脚本 -->
{block name="script"}
<script>
	var moduleInit = ['tool'];

	function gouguInit() {
		var form = layui.form, tool = layui.tool;
		
	
		


		//监听提交
		form.on('submit(webform)', function (data) {
			
			let callback = function (e) {
				layer.msg(e.msg);
				if (e.code == 0) {
					tool.sideClose(1000);
				}
			}
			tool.post("/admin/order/edit_fenjian", data.field, callback);
			return false;
		});
	}
</script>
{/block}
<!-- /脚本 -->